package com.lechi.web.export;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lechi.web.common.annotation.Excel;
import com.lechi.web.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 监测数据对象 iot_monitor_data
 *
 * @author yangguang
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class IotMonitorDataExport extends BaseEntity {

    /**
     * 设备序列号
     */
    @Excel(name = "序列号", cellType = Excel.ColumnType.STRING)
    private String deviceSn;


    /**
     * 所属传感器的 观测要素ID号
     */
    @Excel(name = "观测要素")
    private String sensorAliasName;


    /**
     * 数据时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dateTime;

    /**
     * 浮点型实时数据
     */
    @Excel(name = "数值", cellType = Excel.ColumnType.STRING)
    private Float doubleValue;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

}
